# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=aqemu
pkgver=0.9.4
pkgrel=0
pkgdesc="GUI for virtual machines using QEMU as the backend"
url="https://sourceforge.net/projects/aqemu/"
arch="all"
license="GPL-2.0"
depends="qemu"
options="!check" #no check/test provided
makedepends="cmake libvncserver-dev bzip2 qt5-qtbase-dev glib-dev"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/TBK/aqemu/archive/v$pkgver.tar.gz
	fix-includes.patch"

prepare() {
	default_prepare
	mkdir -p build
}

build() {
	cd build
	cmake \
		-DCMAKE_INSTALL_PREFIX="/usr" \
		-DMAN_PAGE_COMPRESSOR=gzip ..
	make
}

package() {
	cd build
	make DESTDIR="$pkgdir" install
}

sha512sums="
e10e2c558572e6194abadeb46034a59d1b5837efe77012c2ef2d4c5ae610e7a7b09e2315e6d5fd8a12fd7f9db34068a15926b0dbe8f91db6a0d4f48eea722a9d  aqemu-0.9.4.tar.gz
3220e25280a5728f299f30147c0a78537a672541a0c561aedad10af38650ef0a9145d7898060230147878fa497320ab789310b055c018a59f6474f588c4a042b  fix-includes.patch
"
